<?php
   class ORM extends ORM_Core
   {
      public function load_data( $data )
      {
         foreach ( $data as $field => $value )
         {
            if( !empty( $value ) && array_key_exists( $field, $this -> object ) )
            {
               $this -> $field = $value;
            }
         }
      }
   }
?>